Avoid crashes and assertions while handling SIGWINCH
authorEli Zaretskii <eliz@gnu.org>
Mon, 3 Jun 2024 17:37:31 +0000 (20:37 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 3 Jun 2024 17:37:31 +0000 (20:37 +0300)
commiteb9afd558ec506f1d349dbb61668d6231fda136f
tree070cd9bd3722bd6db296c188276eb51f0ee20b63
parent4395f4d4530db77156b20209c1a81dce22c6e62d
Avoid crashes and assertions while handling SIGWINCH

* src/dispnew.c (build_frame_matrix_from_leaf_window)
(window_to_frame_vpos): Avoid assertion violations when we have an
unhandled SIGWINCH.
(frame_size_change_delayed): New function.
* src/dispextern.h (frame_size_change_delayed): Add prototype.
* src/cm.c (cmcheckmagic): Don't check magicwrap if we have an
unhandled SIGWINCH.  (Bug#71289)
src/cm.c
src/dispextern.h
src/dispnew.c